package com.myshop.b2b.commonmodule;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Arrays;

/**
 * 
 * @TableName user
 */
@TableName(value ="user")
public class User implements Serializable {
    /**
     * 账号
     */
    @TableId(type = IdType.AUTO)
    private Integer uaccount;

    /**
     * 密码
     */
    private String upassword;

    /**
     * 姓名
     */
    private String uname;

    /**
     * 性别
     */
    private String usex;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 账号
     */
    public Integer getUaccount() {
        return uaccount;
    }

    /**
     * 账号
     */
    public void setUaccount(Integer uaccount) {
        this.uaccount = uaccount;
    }

    public String getUpassword() {
        return upassword;
    }

    public void setUpassword(String upassword) {
        this.upassword = upassword;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUsex() {
        return usex;
    }

    public void setUsex(String usex) {
        this.usex = usex;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", uaccount=").append(uaccount);
        sb.append(", upassword=").append(upassword);
        sb.append(", uname=").append(uname);
        sb.append(", usex=").append(usex);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}